/*
 * Copyright (c) 2006-2022, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-08-20     BruceOu      first implementation
 */

#include <stdio.h>
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "SEGGER_RTT.h"

int main(void)
{
    int count = 1;
    SEGGER_RTT_Init();
    /* set LED1 pin mode to output */
    rt_pin_mode(ARM_SYS_LED, PIN_MODE_OUTPUT);

    while (count++)
    {
        rt_pin_write(ARM_SYS_LED, PIN_HIGH);
        rt_thread_mdelay(500);
        SEGGER_RTT_printf(0,"hello\r\n");
        rt_pin_write(ARM_SYS_LED, PIN_LOW);
        rt_thread_mdelay(500);
        rt_kprintf("hell0");
    }

    return RT_EOK;
}
